<?php
namespace yan\editor_frontend\editorxml;

use yii\helpers\Html;
class WebTextH1Widget extends WebWidget{
	public function run(){
		$options = $this->options;
		$tag = !empty($this->value['value']['tag']) ? $this->value['value']['tag'] : 'h1';
		$shtml = Html::tag($tag, (isset($this->value['value']['content']) ? $this->value['value']['content'] : ''), $options);
		return $shtml;
	}
}